const express = require("express");
const app = express();

const PORT = 3000;

const users = [
  { id: 1, name: "hyt" },
  { id: 2, name: "yz" },
  { id: 3, name: "fbb" },
];

app.get("/users", (req, res) => {
  res.json(users); // 返回用户列表数据
});

app.listen(PORT, () => {
  console.log(`服务器正在运行`);
});
